<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变量</title>
</head>
<body>
    
</body>
<script>
    //alert(123456);
    // let x=123456
    // alert(x)
    // let string='Faisal ibn Abdul Aziz ibn Abdul Rahman al Saud';

    var name;
    console.log(name);
    name='javascrpt';
    let age;

    console.log(age)
    age=20
    console.log(age)

    if(1){
        var result2=false;
    }
    console.log(result2)


    if(1){
        let result=false;
        function aa(){
            console.log(result)
        }
        aa()
    }
    //console.log(result)

    var name='hello js';
    console.log(name)

    let age=200
    console.log(age)


    let val =12;
    val='name';//弱类型

    


    

    
    
</script>
</html>